package com.wyw.design.model.learning.behavioral.command;

/**
 * @Title   具体命令类
 * @Description
 * @Author Mr Wu yewen.wu.china@gmail.com
 * @Date 2023/4/17 15:21
 * Update History:
 * Author        Time            Content
 */
public class ConcreteCommand implements Command {
    private Receiver receiver;
    public ConcreteCommand(Receiver receiver) {
        this.receiver = receiver;
    }
    public void execute() {
        this.receiver.doSomething();
    }
}